//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.pc_rfid.api;

import java.util.Arrays;

public class RFdata {
    public byte[] SendData = new byte[256];
    public byte[] RecvData = new byte[256];

    public RFdata() {
    }

    public String getSendData() {
        return this.byteToString(this.SendData);
    }

    public String getReceiveData() {
        return this.byteToString(this.RecvData);
    }

    private String byteToString(byte[] data) {
        String str = "";
        int len = (data[1] + 256) % 256 + 1;

        for(int i = 0; i < len; ++i) {
            str = str + String.format("%02X ", data[i]);
        }

        return str;
    }

    public void clear() {
        Arrays.fill(this.SendData, (byte)0);
        Arrays.fill(this.RecvData, (byte)0);
    }
}
